package cn.huoyingkeji.system.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import cn.huoyingkeji.mybitisplus.domain.TenantEntity;
import lombok.Data;

@Data
@TableName("t_sys_resource")
public class SysResource extends TenantEntity {
    private static final long serialVersionUID = 1L;

    /** 父id */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long parentId;

    /** 标题 */
    private String title;

    /** 别名 */
    @TableField(insertStrategy = FieldStrategy.IGNORED, updateStrategy = FieldStrategy.IGNORED)
    private String name;

    /** 编码 */
    private String code;

    /** 分类 */
    private String category;

    /** 模块 */
    private String module;

    /** 菜单类型 */
    private String menuType;

    /** 路径 */
    private String path;

    /** 组件 */
    @TableField(insertStrategy = FieldStrategy.IGNORED, updateStrategy = FieldStrategy.IGNORED)
    private String component;

    /** 图标 */
    @TableField(insertStrategy = FieldStrategy.IGNORED, updateStrategy = FieldStrategy.IGNORED)
    private String icon;

    /** 颜色 */
    private String color;

    /** 是否可见 */
    private String visible;

    /** 排序码 */
    private Integer sortCode;

    /** 扩展信息 */
    @TableField(insertStrategy = FieldStrategy.IGNORED, updateStrategy = FieldStrategy.IGNORED)
    private String extJson;
}
